﻿#ifndef CMDLINECHARTCHANGELINEPROPERTY_H
#define CMDLINECHARTCHANGELINEPROPERTY_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartChangeLineProperty : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartChangeLineProperty();
            ~CmdLineChartChangeLineProperty();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(int windowUniversalID, int curveInfoID, QString docStr) { 
                m_windowUniversalID = windowUniversalID; 
                m_curveInfoID = curveInfoID; 
                m_docStr = docStr; 
            }

        private:
            int m_windowUniversalID{};
            int m_curveInfoID{};
            QString m_docStr{};
    };

} // namespace PostCommand

#endif
